<template>
    <el-config-provider :locale="locale">
        <router-view/>
    </el-config-provider>
</template>

<script lang="ts">
/**
 * 配置Element-plus国际化为中文
 */
import {defineComponent, ref} from 'vue'
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import {ElConfigProvider} from "element-plus";

export default defineComponent({
    name: 'Home',
    components: {
        [ElConfigProvider.name]: ElConfigProvider
    },
    setup() {
        const locale = ref(zhCn);
        return {locale}
    }
})


</script>
